package com.ly.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.net.URL;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 用户案例DTO
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
@Data
public class UserCaseDTO {

    /**
     * 用户案例ID:用户案例ID，必填
     */
    @NotNull(groups = { UpdateGroup.class, DeleteGroup.class }, message = "用户案例ID不能为空")
    @Schema(description = "用户案例ID:用户案例ID，必填")
    private Integer id;

    /**
     * 案例标题:案例标题，必填
     */
    @NotBlank(groups = { CreateGroup.class, UpdateGroup.class }, message = "案例标题不能为空")
    @Size(max = 255, message = "案例标题长度不能超过255")
    @Schema(description = "案例标题:案例标题，必填")
    private String title;

    /**
     * 案例内容:案例内容
     */
    @Schema(description = "案例内容:案例内容")
    private String content;

    /**
     * 图片URL:图片URL
     */
    @Schema(description = "图片URL:图片URL")
    private String imageUrl;

    /**
     * 客户名称:客户名称
     */
    @Size(max = 255, message = "客户名称长度不能超过255")
    @Schema(description = "客户名称:客户名称")
    private String customerName;
}
